﻿using Coolvis.UI.Theme.Console;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ChanceData.Theme.Green.Console
{
    public class GreenTheme : ITheme
    {
        public CPPEI.Coolzon.UI.View CreateMainView()
        {
            return new Coolvis.Console.Theme.MainView();
        }

        public CPPEI.Coolzon.UI.View CreateSelectSolutionView(string currentSolutionName, bool isSwitchSolution, bool isCanBeBack)
        {
            return new Coolvis.Console.Theme.GreenSelectSolutionView(currentSolutionName, isSwitchSolution, isCanBeBack);
        }

        public CPPEI.Coolzon.UI.View CreateLoadingView(string solution, string solutionFile, string solutionDirectory)
        {
            return new Coolvis.Console.Theme.GreenLoadingView(solution, solutionFile, solutionDirectory);
        }

        public CPPEI.Coolzon.UI.View CreateLoginView(string account, string password)
        {
            if (string.IsNullOrEmpty(account))
            {
                return new LoginView();
            }
            else
            {
                return new LoginView(account, password);
            }
        }
    }
}
